package base.datastructure.tree;


import java.util.List;

/**
 * @author lizx
 * @ClassName:
 * @Description:
 * @date 2020/9/15 19:48
 */
public class NodeHelper{

    public Integer id;

    public Integer parentId;

    public List<? extends NodeHelper> child;

    public NodeHelper(){}

    public NodeHelper(Integer id, Integer parentId, List<? extends NodeHelper> child) {
        this.id = id;
        this.parentId = parentId;
        this.child = child;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public List<? extends NodeHelper> getChild() {
        return child;
    }

    public void setChild(List<? extends NodeHelper> child) {
        this.child = child;
    }
}
